'''
Created on Dec 5, 2010

@author: jackreilly
'''

from google.appengine.ext import webapp
from jettube.models import Opinion, Song
from jettube.client.responseUtil import dumpDictionary

class AddOpinionHandler(webapp.RequestHandler):
    def get(self):
        Opinion.newOpinionFromRequest(self.request)
        Song.addLikeDislikeToSongFromRequest(self.request)
        dumpDictionary(Song.getSongDictionaryFromRequest(self.request),self.response)